export default [
  //客户中心
  {
    path: "/merchant/customerCenter/customerGroup",
    name: "CustomerGroup",
    noChild: true,
    icon: "el-icon-user",
    meta: {
      title: "客群管理",
      noChild: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/customer/customerGroup/Index.vue"),
  },
  {
    path: "/merchant/customerCenter/customerGroup/addSmartGroup",
    name: "addSmartGroup",
    noChild: true,
    meta: {
      title: "添加动态客群",
      noChild: true,
      needLogin: true,
    },
    component: () => import("@/views/customer/customerGroup/component/addSmartGroup.vue"),
  },
  {
    path: "/merchant/customerCenter/customerGroup/customerDetail/:id",
    name: "customerDetail",
    noChild: true,
    icon: "el-icon-user",
    meta: {
      title: "客群明细",
      noChild: true,
      needLogin: true,
    },
    component: () =>
      import("@/views/customer/customerGroup/customerDetail.vue"),
  },
  {
    path: "/merchant/customerCenter/attribute",
    name: "Attribute",
    meta: {
      title: "标签管理",
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/customer/attribute/Index.vue"),
  },
  {
    path: "/merchant/customerCenter/customerClient",
    name: "CustomerClient",
    isNone: true,
    meta: {
      title: "客户管理",
      noChild: true,
      isNone: true,
      needLogin: true,
      keepAlive: true,
    },
    component: () =>
      import("@/views/customer/customerGroup/customerClient.vue"),
  },
  {
    path: "/merchant/customerCenter/customerClient/customerContent/:id",
    name: "customerContent",
    noChild: true,
    icon: "el-icon-user",
    meta: {
      title: "客户管理详情",
      noChild: true,
      needLogin: true,
    },
    component: () =>
      import("@/views/customer/customerGroup/customerContent.vue"),
  },

  //订单中心
  {
    path: "/merchant/order/manage",
    name: "MorderManage",
    component: () => import("@/views/order/order.vue"),
    meta: {
      title: "订单管理",
      needLogin: true,
      keepAlive: true,
    }
  },
  {
    path: "/merchant/order/manage/detail",
    name: "orderDetail",
    component: () => import("@/views/order/OrderDetail.vue"),
    meta: {
      needLogin: true
    }
  },
  //订单审核列表
  {
    path: "/merchant/order/audit_list",
    name: "OrderAuditList",
    component: () => import("@/views/order/AuditList.vue"),
    meta: {
      needLogin: false
    }
  },
  {
    path: "/merchant/order/list_after_sales",
    name: 'MlistAfterSales',
    component: () => import("@/views/order/AfterSalesServiceOrderList.vue"),
    meta: {
      title: "售后订单",
      needLogin: true,
      keepAlive: true,
    }
  },
  {
    path: "/merchant/order/list_abnormal/detail_after_sales",
    component: () => import("@/views/order/AfterSalesServiceOrderDetail.vue"),
    meta: {
      needLogin: true
    }
  },
  {
    path: "/merchant/order/list_abnormal",
    name: "AbnormalOrderList",
    component: () => import("@/views/order/AbnormalOrderList.vue"),
    meta: {
      title: "异常订单",
      needLogin: true,
      keepAlive: true,
    }
  },
  //任务中心
  {
    path: "/merchant/task_center/task_record",
    name: "TaskRecord",
    component: () => import('@/views/taskCenter/TaskRecord.vue'),
    meta: {
      title: "任务记录",
      keepAlive: true,
    }
  },
  {
    path: "/merchant/task_center/category",
    name: "TaskCategory",
    component: () => import('@/views/taskCenter/TaskCategory.vue'),
    meta: {
      title: "任务分类",
      keepAlive: true,
    }
  },
  // {
  //   path: "/merchant/task_center",
  //   component: () => import('@/views/taskCenter/TaskCenter.vue'),
  //   redirect: "category",
  //   children: [
  //     {
  //       path: "task_record",
  //       name: "TaskRecord",
  //       component: () => import('@/views/taskCenter/TaskRecord.vue'),
  //       meta: {
  //         title: "任务记录",
  //         keepAlive: true,
  //       }
  //     },
  //     {
  //       path: "category",
  //       name: "TaskCategory",
  //       component: () => import('@/views/taskCenter/TaskCategory.vue'),
  //       meta: {
  //         title: "任务分类",
  //         keepAlive: true,
  //       }
  //     }
  //   ]
  // },

  //会员中心
  {
    path: "/merchant/vip_center/rank_list",
    name: "RankList",
    component: () => import('@/views/vipCenter/VipRankList.vue'),
    meta: {
      title: "会员等级",
      keepAlive: true,
    }
  },
  {
    path: "/merchant/vip_center/benefits",
    name: "Benefits",
    component: () => import('@/views/vipCenter/VipBenefits.vue'),
    meta: {
      title: "会员权益",
      keepAlive: true,
    }
  },
  {
    path: "/merchant/vip_center/configure_goods",
    component: () => import('@/views/vipCenter/ConfigureGoods.vue')
  },
  {
    path: "/merchant/vip_center/rank_rule",
    name: 'RankRule',
    component: () => import('@/views/vipCenter/VipRankRule.vue'),
    meta: {
      title: "会员等级规则",
      keepAlive: true,
    }
  },
  {
    path: "/merchant/vip_center/configure_gift_pack",
    component: () => import('@/views/vipCenter/ConfigureGiftPack.vue')
  },
  // {
  //   path: "/merchant/vip_center",
  //   component: () => import('@/views/vipCenter/VipCenter.vue'),
  //   redirect: "rank_list",
  //   children: [
  //     {
  //       path: "rank_list",
  //       name: "RankList",
  //       component: () => import('@/views/vipCenter/VipRankList.vue'),
  //       meta: {
  //         title: "会员等级",
  //         keepAlive: true,
  //       }
  //     },
  //     {
  //       path: "benefits",
  //       name: "Benefits",
  //       component: () => import('@/views/vipCenter/VipBenefits.vue'),
  //       meta: {
  //         title: "会员权益",
  //         keepAlive: true,
  //       }
  //     },
  //     {
  //       path: "configure_goods",
  //       component: () => import('@/views/vipCenter/ConfigureGoods.vue')
  //     },
  //     {
  //       path: "rank_rule",
  //       component: () => import('@/views/vipCenter/VipRankRule.vue')
  //     },
  //     {
  //       path: "configure_gift_pack",
  //       component: () => import('@/views/vipCenter/ConfigureGiftPack.vue')
  //     },
  //   ]
  // },
  //积分中心
  {
    path: "/merchant/tokens/tokensManage",
    name: "TokensManage",
    meta: {
      title: "积分管理",
      keepAlive: true,
    },
    component: () => import("@/views/marketingCenter/tokensManagement/Index.vue"),
  },
  {
    path: "/merchant/tokens/tokensManage/tokensDetail/:id",
    name: "tokensDetail",
    meta: {
      title: "积分明细",
    },
    component: () => import("@/views/marketingCenter/tokensManagement/tokensDetail.vue"),
  },
  // {
  //   path: "/merchant/tokens",
  //   name: "marketingCenter",
  //   meta: {
  //     title: "积分中心",
  //   },
  //   component: () => import("@/views/marketingCenter/Index.vue"),
  //   children: [
  //     {
  //       path: "tokensManage",
  //       name: "tokensManage",
  //       meta: {
  //         title: "积分管理",
  //         keepAlive: true,
  //       },
  //       component: () => import("@/views/marketingCenter/tokensManagement/Index.vue"),
  //     },
  //     {
  //       path: "tokensManage/tokensDetail/:id",
  //       name: "tokensDetail",
  //       meta: {
  //         title: "积分明细",
  //       },
  //       component: () => import("@/views/marketingCenter/tokensManagement/tokensDetail.vue"),
  //     },
  //   ],
  // },
  //商家中心
  {
    path: "/merchant/product/category",
    name: "ProductCategory",
    component: () => import("@/views/product/Category.vue"),
    meta: {
      title: "商品分类",
      needLogin: true,
      keepAlive: true,
    }
  },
  {
    path: "/merchant/product/businesManag",
    name: "BusinesManagement",
    component: () => import("@/views/product/businesManagement.vue"),
    meta: {
      title: "商家管理",
      needLogin: true,
      keepAlive: true,
    }
  },
  //机构管理
  {
    path: "/merchant/organization/manage/staff/:id",
    name: "OrganizationStaff",
    component: () => import("@/views/organization/staff.vue"),
    meta: {
      title: "员工列表",
      needLogin: true,
      keepAlive: true,
    }
  },
  {
    path: "/merchant/organization/position",
    name: "OrganizationPosition",
    component: () => import("@/views/organization/position.vue"),
    meta: {
      title: "职务管理",
      needLogin: true,
      keepAlive: true,
    }
  },
  {
    path: "/merchant/organization/manage",
    name: "OrganizationManage",
    component: () => import("@/views/organization/manage.vue"),
    meta: {
      title: "机构管理",
      needLogin: true,
      keepAlive: true,
    }
  },
  {
    path: "/merchant/organization/staff_management",
    name: "StaffManagement",
    component: () => import("@/views/organization/StaffManagement.vue"),
    meta: {
      title: "员工管理",
      needLogin: true,
      keepAlive: true,
    }
  },
  //日志管理
  {
    path: '/merchant/log/merchant_log',
    name: 'MerchantLog',
    component: () => import('@/views/log/MerchantOperationLog.vue'),
    meta: {
      title: "商户操作日志",
      needLogin: true,
      keepAlive: true,
    }
  },
  //系统管理
  {
    path: "/merchant/system/systemConfig",
    name: "systemConfig",
    component: () => import("@/views/systemConfig/Index.vue"),
    meta: {
      needLogin: true,
    },
  },
  {
    path: "/merchant/system/platform",
    name: "SystemPlatform",
    component: () => import("@/views/systemConfig/platform.vue"),
    meta: {
      needLogin: true,
      title: '平台配置',
      keepAlive: true,
    },
  },
  {
    path: "/merchant/system/ipConfigList",
    name: "IpConfigList",
    component: () => import("@/views/systemConfig/ipConfigList.vue"),
    meta: {
      needLogin: true,
      title: 'ip限制配置',
      keepAlive: true,
    },
  },
  {
    path: "/merchant/system/configSetting",
    name: "ConfigSetting",
    component: () => import("@/views/systemConfig/configSetting.vue"),
    meta: {
      needLogin: true,
      title: '开发配置',
      keepAlive: true,
    },
  },
  //页面管理
  {
    path: "/merchant/pageMng/middlePage",
    name: "MiddlePage",
    meta: {
      title: "中间页管理",
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/page/MiddlePage.vue"),
  },
  //登录页面管理
  {
    path: "/merchant/pageMng/loginManagement",
    name: "LoginManagement",
    meta: {
      title: "中间页管理",
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/page/LoginManagement.vue"),
  },

  //公告管理
  {
    path: "/merchant/notice/noticeMng",
    name: "NoticeMng",
    meta: {
      title: "公告管理",
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/notice/index.vue"),
  },
  //审核管理
  {
    path: "/merchant/verify/activity",
    name: "VerifyActivity",
    component: () => import('@/views/verify/activity.vue'),
    meta: {
      title: "活动审核",
      needLogin: true,
      keepAlive: true,
    }
  },
  {
    path: "/merchant/verify/goods",
    name: "VerifyGoods",
    component: () => import('@/views/verify/goods.vue'),
    meta: {
      title: "商品审核",
      needLogin: true,
      keepAlive: true,
    }
  },
  {
    path: "/merchant/verify/couponBatch",
    name: "VerifyCouponBatch",
    component: () => import('@/views/verify/couponBatch.vue'),
    meta: {
      title: "券批次审核",
      needLogin: true,
      keepAlive: true,
    }
  },
  {
    path: "/merchant/verify/goods/detail",
    name: "VerifyGoodsDetail",
    component: () => import('@/views/verify/goods/index.vue'),
    meta: {
      title: "商品审核详情",
      needLogin: true,
      keepAlive: true,
    }
  },
  // {
  //   path: "/merchant/verify",
  //   redirect: "activity",
  //   component: () => import("@/views/verify/index.vue"),
  //   children: [
  //     {
  //       path: "activity",
  //       name: "Activity",
  //       component: () => import('@/views/verify/activity.vue'),
  //       meta: {
  //         title: "活动审核",
  //         needLogin: true,
  //         keepAlive: true,
  //       },
  //     },
  //   ]
  // },
  {
    path: "/merchant/exportFileList",
    name: "exportFileList",
    meta: {
      title: "导出文件列表",
      needLogin: true,
      keepAlive: true,
    },
    component: () => import("@/views/exportData/Index.vue"),
  },
]
